package com.rency.mtds.starter.client.provider;

import javax.sql.DataSource;
import java.util.Map;

/**
 * @author: caiyu.ren
 * Created on 2019/9/3 9:25
 * @version: V1.0.0
 * @since JDK 11
 */
public interface DataSourceRouteProvider {

    /**
     * load master
     *
     * @return masterDataSource
     */
    DataSource loadMasterDataSource();

    /**
     * load slaves
     *
     * @return slaveDataSource
     */
    Map<String, DataSource> loadSlaveDataSource();
}
